import TWEEN from "@tweenjs/tween.js";

import { scene } from "./scene.js"; //Three.js三维场景
import { camera } from "./camera.js"; //相机对象
import { composer } from "./composer.js"; //composer取代renderer渲染器对象渲染场景
import { CSS3LabelRenderer } from "./CSS3DRenderer.js";

function render() {
  TWEEN.update();
  CSS3LabelRenderer.render(scene, camera);
  composer.render(scene, camera); //执行渲染操作
  requestAnimationFrame(render); //请求再次执行渲染函数render，渲染下一帧
}

render();
